// src/api/common.js
import instance from '../utils/request.js'; // 修正路径，从 src/utils/ 导入

export const uploadFile = (file) => {
  const formData = new FormData();
  formData.append('file', file);
  return instance.post('/common/upload', formData, {
    headers: {
      'Content-Type': 'multipart/form-data',
    },
  });
};